package com.stt.experiment.websocket.action.dispatcher.annotation;

public class ReqNames {

    private String module;
    private String cmd;

    public ReqNames(String module, String cmd) {
        this.module = module;
        this.cmd = cmd;
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof ReqNames)) {
            return super.equals(obj);
        } else {
            ReqNames reqNames = (ReqNames) obj;
            return this.module.equals(reqNames.getModule()) && this.cmd.equals(reqNames.getCmd());
        }
    }

    public int hashCode() {
        int hash = 7;
        hash = hash * 31 + this.module.hashCode();
        hash = hash * 31 + this.cmd.hashCode();
        return hash;
    }

    public String toString() {
        return this.module + ":" + this.cmd;
    }

    public String getModule() {
        return this.module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getCmd() {
        return this.cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

}
